Add helper script to check modules are packaged
authorStuart Prescott <stuart@debian.org>
Sat, 15 Feb 2025 14:21:54 +0000 (01:21 +1100)
committerStuart Prescott <stuart@debian.org>
Tue, 18 Feb 2025 08:57:28 +0000 (19:57 +1100)
debian/check-packages [new file with mode: 0755]

diff --git a/debian/check-packages b/debian/check-packages
new file mode 100755 (executable)
index 0000000..af3ca4e
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# Compare the upstream list of packages to the ones that d/control will make:
+
+sed -nr 's/\* (.*)/\1/p' README.pyside6_addons.md README.pyside6_essentials.md |
+tr A-Z a-z |
+while read module; do
+    if [ $module = "qtaxcontainer" ]; then
+        # windows only module
+        continue
+    fi
+    if ! grep -q "^Package: python3-pyside6.$module" debian/control; then
+        echo "MISSING PACKAGE FOR: $module"
+    fi
+done
+
+
+# Check that every package has a list of files to install
+for pkg in $(dh_listpackages | grep ^python3); do
+    if [ ! -f debian/$pkg.install ]; then
+        echo "MISSING CONFIG $pkg.install"
+    fi
+done